<?php
/**
 * 用户逻辑层
 *
 */

namespace App\Utils;



class Password
{

    public static function sign(?string $password = '',?string $salt = '')
    {
        if($salt == ''){
            return md5($password);
        }else{
            return md5( md5($password) . $salt );
        }
    }


}
